home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Doco ƒ / CSMP ƒ / CSMP-V1-070.TXT < prev    next >
Encoding:
Text File  |  1992-06-04  |  42.5 KB  |  1,115 lines

  1. C.S.M.P. Digest             Sun, 03 May 92       Volume 1 : Issue 70
  2.  
  3. Today's Topics:
  4.  
  5.     Can I get a handle to a TE in a dialog box?
  6.     Two Neophyte Questions (dialog box, screen depth)
  7.     PostScript Tool Needed
  8.     animation: novice needs help
  9.     Anyone want to write/has written a 'sun-mouse' init ?;-}
  10.     filename from pathnumber
  11.     Floppy Disk Override Part II
  12.  
  13.  
  14. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  15.  
  16. These digests are available (by using FTP, account anonymous, your email
  17. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  18. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  19. Questions list.  The last several issues of the digest are available from
  20. sumex-aim.stanford.edu as well.
  21.  
  22. These digests are also available via email.  Just send a note saying that you
  23. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  24. automatically receive each new digest as it is created.
  25.  
  26. The articles in these digests are taken directly from comp.sys.mac.programmer.
  27. They are not edited; all articles included in this digest are in their original
  28. posted form.  The only articles that are -not- included in these digests are
  29. those which didn't receive any replies (except those that give information
  30. rather than ask a question).  All replies to each article are concatenated
  31. onto the original article in the order in which they were received.  Article
  32. threads are not added to the digests until the last article added to the
  33. thread is at least one month old (this is to ensure that the thread is dead
  34. before adding it to the digests).
  35.  
  36. Send administrative mail to mkelly@cs.uoregon.edu.
  37.  
  38. -------------------------------------------------------
  39.  
  40. From: dave@PRC.Unisys.COM (David Lee Matuszek)
  41. Subject: Can I get a handle to a TE in a dialog box?
  42. Date: 19 Mar 92 19:38:48 GMT
  43. Organization: Paoli Research Center - Paoli, PA
  44.  
  45. I have a dialog box with something like this in it:
  46.  
  47.     When should the program quit?
  48.        o  after _____ minutes
  49.        o  when _____ responses have been given
  50.  
  51. The "o" denotes a radio button, the "_____" denotes a TextEdit area
  52. overlaid on the radio button text. (The example is simplified;
  53. actually there are half a dozen radio buttons, etc.)
  54.  
  55. Tabbing through the TEs works just fine. And just as I want, whenever
  56. I tab to the next one, the whole range of text is selected/highlighted
  57. in it.
  58.  
  59. Clicking on a TE also works fine. I can get the corresponding radio
  60. button set.
  61.  
  62. BUT if I click on a radio button, I want to be able to select the
  63. correct TE, and select/highlight the range of text in it. I can't do
  64. this.
  65.  
  66. My fuzzy understanding is that there's really only one TE record for
  67. the whole dialog, and the OS reuses it as you move from TE area to TE
  68. area. (Corrections welcome.) OK, I can live with that; but how do I
  69. get a handle to it so I can do things like select the entire range? Or
  70. what do I do to associate the TE record with the right area on the
  71. screen? I CAN get a handle to the _text_ in the TE record, which is
  72. sometimes useful but is _not_ what I need here.
  73.  
  74. Is there any way to get this handle? Failing that, is there any other
  75. way to accomplish the same sort of thing?
  76.  
  77. BTW, I have played around with other ways of arranging the dialog, but
  78. I just can't find anything as clean or as Mac-like as the arrangement
  79. I've described above.
  80.  
  81. aTdHvAaNnKcSe
  82.  
  83. - -- Dave Matuszek (dave@prc.unisys.com)  I don't speak for my employer.   --
  84.  
  85. +++++++++++++++++++++++++++
  86.  
  87. From: Jeremiah.Blatz@dartmouth.edu (Jeremiah Blatz)
  88. Date: 26 Mar 92 04:12:20 GMT
  89. Organization: Dartmouth College, Hanover, NH
  90.  
  91. Inside Mac Vol. 1 tells you how to do this stuff on pp. 421-422. The
  92. routines are (In pascal):
  93.  
  94. PROCEDURE GetDItem(theDialog: DialogPtr; itemNo: INTEGER; VAR itemType:
  95. INTEGER; VAR item: Handle; VAR box: Rect);
  96.  
  97. itemType will be an editText, item is a handle to the item you specify
  98. in "itemNo".
  99.  
  100. After you do that, you can call:
  101.  
  102. PROCEDURE GetIText (item: Handle; VAR text: Str255);
  103.  
  104. "item" is the handle you got in GetDItem, text is the field's contents.
  105. (If they're more than 255 characters in the editText item, the Mac
  106. chops off the tail.)
  107.  
  108. By the way, if you want to set a default value, you can use:
  109.  
  110. PROCEDURE SetIText (item: Handle; text: Str255);
  111.  
  112. By convention, you should hilite the default with:
  113.  
  114. PROCEDURE SelIText (theDialog: DialogPtr; itemNo: INTEGER;
  115. strtSel,endSel: INTEGER);
  116.  
  117. You should pass 0 for strtSel and 32767 for sndSel to hilite the whole
  118. thang.
  119.  
  120. Hope this helps,
  121. JerBl@Dartmouth.edu
  122. In case Apple gets pissy about copyrights, all of this is from Inside
  123. Macintosh, but if you mess up, it's not their fault.
  124.  
  125. +++++++++++++++++++++++++++
  126.  
  127. From: ABSURD@applelink.apple.com (Tim Dierks, ToyMeister, Cray abuser)
  128. Date: 1 Apr 92 04:30:20 GMT
  129. Organization: MacDTS, Apple Computer
  130.  
  131. In article <1992Mar19.193848.10796@gvl.unisys.com>, dave@PRC.Unisys.COM (David Lee Matuszek) writes:
  132. > BUT if I click on a radio button, I want to be able to select the
  133. > correct TE, and select/highlight the range of text in it. I can't do
  134. > this.
  135. > Is there any way to get this handle? Failing that, is there any other
  136. > way to accomplish the same sort of thing?
  137.  
  138. Use the dialog manager call SelIText (Inside Macintosh I-422).  It will allow
  139. you to select a particular item and to select the text in that item (pass
  140. 0 and 32000 for min and max respectively).
  141.  
  142. Enjoy,
  143. Tim Dierks
  144. MacDTS, but I refuse to sing.
  145.  
  146. ---------------------------
  147.  
  148. From: elon@phsbbs.princeton.nj.us (Elon Danziger)
  149. Subject: Two Neophyte Questions (dialog box, screen depth)
  150. Date: Sat, 21 Mar 92 08:46:53 EST
  151. Organization: Princeton High School, Princeton, New Jersey
  152.  
  153. Greetings.  I'm having two problems programming under Pascal.  First, I 
  154. can't get the insertion point to blink or highlighting to work in a 
  155. dialog box, and I don't know how to determine screen depth.
  156.  
  157. Here's my code for the dialog box; I'm hoping someone can tell me what 
  158. I've done wrong:
  159.  
  160.   repeat
  161.    SystemTask;
  162.    if (GetNextEvent(EveryEvent, eventRec)) then
  163.     begin
  164.      if IsDialogEvent(eventRec) then
  165.      writeln(DialogSelect(eventRec, aDialog, item));
  166.     end;
  167.    case eventRec.what of
  168.     KeyDown, AutoKey: 
  169.      begin
  170.      theChar := Chr(BitAnd(eventRec.Message, charCodeMask));
  171.      end;
  172.  
  173.     ActivateEvt: 
  174.      begin
  175.      if BitAnd(eventRec.Modifiers, activeFlag) <> 0 then
  176.      begin
  177.      SetPort(WindowPtr(eventRec.Message));
  178.      case GetWRefCon(WindowPtr(eventRec.Message)) of
  179.      MainWindRef: 
  180.      ;
  181.      end;
  182.      end
  183.      else
  184.      case GetWRefCon(WindowPtr(eventRec.Message)) of
  185.      MainWindRef: 
  186.      ;
  187.      end;
  188.      end;
  189.     UpdateEvt: 
  190.      begin
  191.      BeginUpdate(WindowPtr(eventRec.Message));
  192.      case GetWRefCon(WindowPtr(eventRec.Message)) of
  193.      MainWindRef: 
  194.      ;
  195.      end;
  196.      EndUpdate(WindowPtr(eventRec.Message));
  197.      end;
  198.  
  199. That WriteLn up there is really for debugging purposes, but it didn't 
  200. help much.
  201.  
  202. Anyway, if you don't have time to look at that code, I would appreciate 
  203. some sample code using dialog boxes, controls, and so forth.
  204.  
  205. Thanks in advance!
  206.  
  207. - -Elon
  208.  
  209. Elon Danziger, Technical SysOp PHSBBS            Princeton High School
  210. DNS: elon@phsbbs.princeton.nj.us      UUCP: ...!princeton!phsbbs!elon
  211. US Mail: 17 Chestnut Street / Princeton, NJ 08542
  212. DISCLAIMER: Author bears full responsibility for this message.
  213.  
  214. +++++++++++++++++++++++++++
  215.  
  216. From: ABSURD@applelink.apple.com (Tim Dierks, ToyMeister, Cray abuser)
  217. Date: 1 Apr 92 04:38:24 GMT
  218. Organization: MacDTS, Apple Computer
  219.  
  220. In article <u5NZHB2w164w@phsbbs.princeton.nj.us>, elon@phsbbs.princeton.nj.us (Elon Danziger) writes:
  221. > Greetings.  I'm having two problems programming under Pascal.  First, I 
  222. > can't get the insertion point to blink or highlighting to work in a 
  223. > dialog box, and I don't know how to determine screen depth.
  224. > Here's my code for the dialog box; I'm hoping someone can tell me what 
  225. > I've done wrong:
  226. >   repeat
  227. >    SystemTask;
  228. >    if (GetNextEvent(EveryEvent, eventRec)) then
  229. >     begin
  230. >      if IsDialogEvent(eventRec) then
  231. >      writeln(DialogSelect(eventRec, aDialog, item));
  232. >     end;
  233.  
  234. You need to call IsDialogEvent _regardless_ of whether GetNextEvent returns a
  235. null event or not; the cursor blinking occurs inside of this call, and if
  236. you don't call it on null events, no blinking will occur.  Try this on
  237. for size:
  238.  
  239.   repeat
  240.      gotEvent := GetNextEvent(EveryEvent, eventRec);
  241.      SystemTask;
  242.      if IsDialogEvent(eventRec) then
  243.         writeln(DialogSelect(eventRec, aDialog, item));
  244.      if gotEvent
  245.        begin
  246.          [... deal with the event]
  247.        end;
  248.  
  249. Forgive my faked-up Pascal.  Note that you want to call SystemTask all the
  250. time also- if you ran your program as shown above under System 6 Finder and
  251. opened up the Alarm Clock, the time would only change when you posted an
  252. event.
  253.  
  254. To determine the screen depth, you examine the depth of the pixMap associated
  255. with the gDevice for the screen you're interested in.  This is described in
  256. Inside Mac volume V, chapters 4 and 5.
  257.  
  258. Tim Dierks
  259. MacDTS, but my Sea-Monkeys die anyway
  260.  
  261. ---------------------------
  262.  
  263. From: mdavis@crash.cts.com (Morgan Davis)
  264. Subject: PostScript Tool Needed
  265. Organization: Crash TimeSharing, El Cajon, CA
  266. Date: Sat, 21 Mar 1992 18:37:38 GMT
  267.  
  268. I've been in search of a utility that will easily allow me to send
  269. PostScript to a LaserWriter (via AppleTalk) and view any error messages
  270. coming back.  All the apps I've scavenged don't seem to be able to
  271. run under System 7.  For example, the myriad of SendPS programs all
  272. fail to open a connection with the printer, but Apple's LaserWriter
  273. Utility can do it just fine.
  274.  
  275. The problem with Apple's utility is that it is too cumbersome for
  276. programming work.  I'd like to be able to run an application that
  277. lets you write your PS code in one window, download it to the printer
  278. directly from the window, and then view any returned error messages
  279. (perhaps in a second window).  This would allow for quick development
  280. and testing of PostScript programs under System 7.
  281.  
  282. Any help or pointers to such a tool would be appreciated.
  283.  
  284. +++++++++++++++++++++++++++
  285.  
  286. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  287. Date: 23 Mar 92 18:38:20 +1200
  288. Organization: University of Waikato, Hamilton, New Zealand
  289.  
  290. In article <1992Mar21.183738.23447@crash.cts.com>, mdavis@crash.cts.com
  291. (Morgan Davis) asks for a tool to send PostScript to a LaserWriter
  292. and retrieve any messages from the printer.
  293.  
  294. I wrote one that runs as an MPW tool. This way I could use MPW itself
  295. to edit the PostScript and view the printer messages. If this is of any
  296. use to you, just ask, and I'll send you a copy.
  297.  
  298. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  299. Computer Services Dept                     fax: +64-7-838-4066
  300. University of Waikato            electric mail: ldo@waikato.ac.nz
  301. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  302.  
  303. +++++++++++++++++++++++++++
  304.  
  305. From: ABSURD@applelink.apple.com (Tim Dierks, ToyMeister, Cray abuser)
  306. Date: 1 Apr 92 04:40:27 GMT
  307. Organization: MacDTS, Apple Computer
  308.  
  309. In article <1992Mar21.183738.23447@crash.cts.com>, mdavis@crash.cts.com (Morgan Davis) writes:
  310. > I've been in search of a utility that will easily allow me to send
  311. > PostScript to a LaserWriter (via AppleTalk) and view any error messages
  312. > coming back.  All the apps I've scavenged don't seem to be able to
  313. > run under System 7.  For example, the myriad of SendPS programs all
  314. > fail to open a connection with the printer, but Apple's LaserWriter
  315. > Utility can do it just fine.
  316. > Any help or pointers to such a tool would be appreciated.
  317.  
  318. All System 6 SendPS programs will work correctly if you move the LaserWriter
  319. file to your System Folder from your Extensions folder (not an alias).
  320. They're looking for necessary code, and they can't find the file they
  321. need.
  322.  
  323. Tim Dierks
  324. MacDTS, but why?
  325.  
  326. ---------------------------
  327.  
  328. From: gam@beta.lanl.gov (Gim Mark)
  329. Subject: animation: novice needs help
  330. Date: 25 Mar 92 15:49:24 GMT
  331. Organization: Los Alamos National Laboratory
  332.  
  333.  
  334. I'm trying to learn how to do animation on my Mac Plus with Think C
  335. 5.0.  As a start, I want to simulate a billiard ball on a table.
  336. Here's the basic code I'm using:
  337.  
  338. /* initialize position and velocities */
  339. FrameOval( ... );
  340. while ( /* conditions are OK */ )
  341. {
  342.     pause();
  343.     EraseOval( ... );
  344.     OffsetRect( ... );
  345.     FrameOval( ... );
  346.     /* recalculate position and velocities */
  347. }
  348.  
  349. 'pause()' exists simply to waste time; it increments an int 1000
  350. times.  Without it, the loop goes so fast you can't see any movement.
  351.  
  352. This code does produce an animation, but it flickers.  I read in the
  353. answers to FAQ's for this group that, to prevent flicker, one should
  354. synchronize redrawing with the vertical refresh.  That sounds
  355. reasonable but I have no idea how to do it.
  356.  
  357. My questions: what's the best way to pace the animation loop?
  358. ('pause()' is a poor and wasteful kludge.)  Are QuickDraw routines the
  359. best to use?  (Might bitmaps be better?  How are they used?)  How does
  360. one deal with flicker?  Most generally, are there books or other
  361. references that deal with this subject?
  362.  
  363. Thanks.
  364.  
  365. Graham Mark
  366. Los Alamos National Laboratory
  367. (505)667-8147
  368.  
  369. +++++++++++++++++++++++++++
  370.  
  371. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  372. Date: 25 Mar 92 20:50:12 GMT
  373. Organization: Royal Institute of Technology, Stockholm, Sweden
  374.  
  375. > gam@beta.lanl.gov (Gim Mark) writes:
  376.  
  377.    'pause()' exists simply to waste time; it increments an int 1000
  378.    times.  Without it, the loop goes so fast you can't see any movement.
  379.  
  380. That might be all well on a MacPlus, but on a Quadra, iterating
  381. 1000 times takes 50 microseconds or so; not a long enough pause...
  382.  
  383. Use TickCount() instead.
  384.  
  385. On the plus, it has the interesting side effect to be synchronized
  386. the vertical retrace !
  387.  
  388. - -- 
  389. h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
  390.  
  391. +++++++++++++++++++++++++++
  392.  
  393. From: psc9q@holmes.acc.Virginia.EDU (Paul Casey)
  394. Date: 27 Mar 92 01:43:14 GMT
  395. Organization: University of Virginia
  396.  
  397. In article <D88-JWA.92Mar25215012@hemul.nada.kth.se> d88-jwa@hemul.nada.kth.se (Jon W{tte) writes:
  398. : > gam@beta.lanl.gov (Gim Mark) writes:
  399. :    'pause()' exists simply to waste time; it increments an int 1000
  400. :    times.  Without it, the loop goes so fast you can't see any movement.
  401. : That might be all well on a MacPlus, but on a Quadra, iterating
  402. : 1000 times takes 50 microseconds or so; not a long enough pause...
  403. : Use TickCount() instead.
  404. : On the plus, it has the interesting side effect to be synchronized
  405. : the vertical retrace !
  406. : -- 
  407. : h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
  408.  
  409. Actually, I believe TickCount() was intended to be updated with the vertical
  410. retrace on older Macs and isn't a side effect. Now that one is able to have
  411. multiple monitors each with a potentially different refresh rate, TickCount()
  412. no longer holds. It is still updated every 60.15ms (I believe), so you could
  413. base your pause() routine on this.
  414.  
  415. Paul Casey
  416. psc9q@virginia.edu
  417.  
  418. +++++++++++++++++++++++++++
  419.  
  420. From: Roy_Lovejoy@adeptsln.cts.com
  421. Date: 29 Mar 92 21:45:26 GMT
  422. Organization: Adept Solutions
  423.  
  424. In article <1992Mar25.154924.19465@newshost.lanl.gov> gam@beta.lanl.gov (Gim  
  425. Mark) writes:
  426. > I'm trying to learn how to do animation on my Mac Plus with Think C
  427. > 5.0.  As a start, I want to simulate a billiard ball on a table.
  428. > Here's the basic code I'm using:
  429. > << CODE REMOVED>> 
  430. > 'pause()' exists simply to waste time; it increments an int 1000
  431. > times.  Without it, the loop goes so fast you can't see any movement.
  432. > Graham Mark
  433. > Los Alamos National Laboratory
  434. > (505)667-8147
  435.  
  436. Graham, 'tis bit of a no-no to use loop-based timing.. The loop will execute  
  437. magnatudes faster on a Quadra, than on a stock-plus!  It's best to use Delay(),  
  438. or more directly, TickCount(), which is based on 1/60 of a second time  
  439. intervals.
  440.  
  441. - -Roy
  442. - -- 
  443. - -----------------+--------------------------------------------------
  444. Roy Lovejoy      | internet:  roy@adeptsln.cts.com
  445. Head RGB Guy     | AppleLink: adept
  446. Adept Solutions  | CIS:       72447,1447
  447.  
  448. +++++++++++++++++++++++++++
  449.  
  450. From: mhall@occs.cs.oberlin.edu (Matthew Hall)
  451. Organization: Oberlin College Computer Science
  452. Date: Wed, 1 Apr 1992 17:55:44 GMT
  453.  
  454. - -All right, but how to actually implement this-
  455.  
  456. Tickcount isa function which retrieves a lo-mem global that stores the
  457. number of ticks since the system started up.  It increments as soon as
  458. the bottom of the screen has finished drawing on small screen macs.
  459. When the bttom has finished drawing you have a few milliseconds to
  460. draw on the screen and not flicker.  So - one way to do this, on a
  461. small screen mac only, goes like this:
  462.  
  463. ...
  464. var tc : longint;
  465. ...
  466.  
  467. {prepare to draw}
  468. tc:=tickcount;
  469. repeat 
  470. until tc<tickcount;
  471. {draw FAST}
  472.  
  473. If you need a delay of n 60ths of a second, you can replace 
  474. until tc<tickcount
  475. with
  476. until tc+DELAY<tickcount.
  477.  
  478. In Think environments, you are provided with a Synch procedure, which
  479. halts the program until the beam is at the TOP of the picture and then
  480. returns control.  This should work on all macs (I think)
  481.  
  482. Another note-  Drawing ovals takes (relatively) a lot of time.  It's
  483. probably best to just create an offscreen bitmap, draw a circle in
  484. there, and copybits, it will be much faster.  See the monthly FAQ list
  485. if you need to learn more about bitmaps, I think there is something in
  486. there.
  487.  
  488. - -Matt Hall
  489.  
  490.  
  491. - --
  492.  
  493.  
  494. - -------------------------------------------------------------------------------
  495. Matt Hall.    mhall@occs.cs.edu  OR  SMH9666@OBERLIN.BITNET
  496.               (216)-775-5805 (That's a Cleveland Area code. Lucky Me)
  497.  
  498. "If a man comes up to you and says:
  499.     'A dog just carried away your ear.'
  500. Do you run after the dog, or search first for your ear?" - Moon over Morocco
  501.   
  502.  
  503. ---------------------------
  504.  
  505. From: dave@coombs.anu.edu.au (David G. White)
  506. Subject: Anyone want to write/has written a 'sun-mouse' init ?;-}
  507. Organization: Computer Services Centre, Australian National University
  508. Date: 27 Mar 92 01:43:05 GMT
  509.  
  510. You might have seen my post in c.m.s.system asking about the availabilty
  511. of a 'sun-mouse' init - ie an init that makes the window that is under the
  512. mouse the currently active window.  Well it seems that not only has no-one
  513. seen one of these babies but quitte a few people want one too.  
  514.  
  515. So I don't supppose there is a community-minded programmer out there who
  516. wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  517.  
  518. Well it was worth a try ;)
  519.  
  520. Thanks (in anticipation),
  521.  
  522. David.
  523.  
  524. - --
  525. _ David G. White ________________________   ______   _____ "What I did with _
  526. _ dave@coombs.anu.edu.au _________________  \    /  ______ Rex Mossop wasnt _
  527. _ 2 Spencer Street, Turner,  ______________  \  /  _______ Porn,it was Art" _
  528. _ ACT 2601, Australia. Ph: +61 6 248 6836 __  \/  ________  - Julian Clarey _
  529.  
  530. +++++++++++++++++++++++++++
  531.  
  532. From: d88-jwa@byse.nada.kth.se (Jon W{tte)
  533. Date: 27 Mar 92 18:35:20 GMT
  534. Organization: Royal Institute of Technology, Stockholm, Sweden
  535.  
  536. @coombs.anu.edu.au (David G. White) writes:
  537.  
  538.    of a 'sun-mouse' init - ie an init that makes the window that is under the
  539.    mouse the currently active window.  Well it seems that not only has no-one
  540.  
  541. You would have to get really, _really_, REALLY down and dirty to pull
  542. something like that off. And all for something which I don't even see
  543. the value of - I run MWM instead of TWM just because I loke a fixed focus.
  544.  
  545.    So I don't supppose there is a community-minded programmer out there who
  546.    wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  547.  
  548. There is a shareware editor (called Alpha) that supported that mode
  549. of operation last I checked. However, that's only for the editor,
  550. it doesn't affect other applications.
  551.  
  552. - -- 
  553. h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
  554.  
  555. +++++++++++++++++++++++++++
  556.  
  557. From: mkelly@majestix.cs.uoregon.edu (Michael A. Kelly)
  558. Organization: University of Oregon Computer and Information Sciences Dept.
  559. Date: Fri, 27 Mar 1992 23:21:00 GMT
  560.  
  561. In article <D88-JWA.92Mar27193520@byse.nada.kth.se> d88-jwa@byse.nada.kth.se (Jon W{tte) writes:
  562. >@coombs.anu.edu.au (David G. White) writes:
  563. >
  564. >   of a 'sun-mouse' init - ie an init that makes the window that is under the
  565. >   mouse the currently active window.  Well it seems that not only has no-one
  566. >
  567. >You would have to get really, _really_, REALLY down and dirty to pull
  568. >something like that off. And all for something which I don't even see
  569. >the value of - I run MWM instead of TWM just because I loke a fixed focus.
  570.  
  571. I'm probably just being naive, but this seems like a relatively simple task.
  572. Just keep track of the mouse position (with GetMouse, probably) and post a
  573. mousedown in the title bar (or some other harmless region) of the window
  574. it's over when it moves from one window to another.  That's probably not the
  575. best way to do it.  You could probably also force the window's application to
  576. come to the front without posting a mousedown, especially with system 7.
  577.  
  578. Am I missing something?  I almost felt compelled to write the init when I saw
  579. the original post, but I'm just too busy....
  580.  
  581. Mike.
  582. - -- 
  583. _____________________________________________________________________________
  584. Michael A. Kelly                                         University of Oregon
  585. mkelly@cs.uoregon.edu                             Computer Science Department
  586. _____________________________________________________________________________
  587.  
  588. +++++++++++++++++++++++++++
  589.  
  590. From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  591. Date: 27 Mar 92 17:46:15 GMT
  592. Organization: Integrated Systems Laboratory, ETH, Zurich
  593.  
  594. In article <dave.701660585@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  595. >You might have seen my post in c.m.s.system asking about the availabilty
  596. >of a 'sun-mouse' init - ie an init that makes the window that is under the
  597. >mouse the currently active window.  Well it seems that not only has no-one
  598. >seen one of these babies but quitte a few people want one too.  
  599. >
  600. >So I don't supppose there is a community-minded programmer out there who
  601. >wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  602.  
  603. I thought about doing such a thing. It might be possible to do by patching
  604. FrontWindow to return the window the cursor is in.
  605.  
  606. I see three main problems:
  607.  
  608. 1) Nobody wants it so badly that they want to risk the eternal wrath of the
  609. window manager
  610.  
  611. 2) It's almost impossible to separate usages of FrontWindow where the front
  612. window should be returned and usages where the mouse window should.
  613.  
  614. 3) What about modal dialogs ?
  615.  
  616. Summary: Not for the weak of heart.
  617.  
  618. Matthias
  619.  
  620. - -----
  621. Matthias Neeracher                                   neeri@iis.ethz.ch
  622.  "You must have picked up that copy of Scarlett instead of Inside Mac
  623.   when you tried to find the right call..." -- Keith Rollin
  624.  
  625. +++++++++++++++++++++++++++
  626.  
  627. From: gurhs@uniwa.uwa.oz.au (Rhys Hollow)
  628. Organization: University of Western Australia
  629. Date: Sun, 29 Mar 1992 08:08:43 GMT
  630.  
  631. neeri@iis.ethz.ch (Matthias Ulrich Neeracher) writes:
  632.  
  633. >In article <dave.701660585@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  634. >>You might have seen my post in c.m.s.system asking about the availabilty
  635. >>of a 'sun-mouse' init - ie an init that makes the window that is under the
  636. >>mouse the currently active window.  Well it seems that not only has no-one
  637. >>seen one of these babies but quitte a few people want one too.  
  638. >>
  639. >>So I don't supppose there is a community-minded programmer out there who
  640. >>wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  641.  
  642. >I thought about doing such a thing. It might be possible to do by patching
  643. >FrontWindow to return the window the cursor is in.
  644.  
  645.  
  646. WHY?  Why do such a horrible thing?  Have you thought of the
  647. consequences?  What happens when you want to select a menu?  You move
  648. the mouse to the menu bar and... oops, the mouse moved over a different
  649. window, bringing a different window to the front, even a different
  650. application, thus either changing the menus completely, or losing the
  651. window you wanted to do the menu command on.  I HATE SUN MOUSES!
  652.  
  653. Someone put them on the amiga, thinking it was a great idea.  The Amiga
  654. would have had the same problem as the mac, but it had a separate mouse
  655. button you had to press to bring up the menubar.  So as long as you
  656. pressed the menu button while you were over the appropriate window,
  657. everything was ok, but if you didn't, the same thing happened.  The sun
  658. mouse brought a different window/application to the front, and you had
  659. to start all over again.
  660.  
  661. I think what I'm saying is that while sun mice are allright on suns
  662. because they have pop-up menus, they would be a disaster on a mac.
  663. (At least this is what I assume they have on a sun, I haven't used a
  664. sun, so I'm not entirely sure)
  665.  
  666. Rhys (raving again...)
  667. - --
  668. Rhys Hollow (gurhs@uniwa.uwa.oz.au) "ee'er by gum he's a bad'un!" -DangerMouse.
  669.  
  670. +++++++++++++++++++++++++++
  671.  
  672. From: d88-jwa@byse.nada.kth.se (Jon W{tte)
  673. Date: 27 Mar 92 18:35:20 GMT
  674. Organization: Royal Institute of Technology, Stockholm, Sweden
  675.  
  676. @coombs.anu.edu.au (David G. White) writes:
  677.  
  678.    of a 'sun-mouse' init - ie an init that makes the window that is under the
  679.    mouse the currently active window.  Well it seems that not only has no-one
  680.  
  681. You would have to get really, _really_, REALLY down and dirty to pull
  682. something like that off. And all for something which I don't even see
  683. the value of - I run MWM instead of TWM just because I loke a fixed focus.
  684.  
  685.    So I don't supppose there is a community-minded programmer out there who
  686.    wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  687.  
  688. There is a shareware editor (called Alpha) that supported that mode
  689. of operation last I checked. However, that's only for the editor,
  690. it doesn't affect other applications.
  691.  
  692. - -- 
  693. h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
  694.  
  695. +++++++++++++++++++++++++++
  696.  
  697. From: mkelly@majestix.cs.uoregon.edu (Michael A. Kelly)
  698. Organization: University of Oregon Computer and Information Sciences Dept.
  699. Date: Fri, 27 Mar 1992 23:21:00 GMT
  700.  
  701. In article <D88-JWA.92Mar27193520@byse.nada.kth.se> d88-jwa@byse.nada.kth.se (Jon W{tte) writes:
  702. >@coombs.anu.edu.au (David G. White) writes:
  703. >
  704. >   of a 'sun-mouse' init - ie an init that makes the window that is under the
  705. >   mouse the currently active window.  Well it seems that not only has no-one
  706. >
  707. >You would have to get really, _really_, REALLY down and dirty to pull
  708. >something like that off. And all for something which I don't even see
  709. >the value of - I run MWM instead of TWM just because I loke a fixed focus.
  710.  
  711. I'm probably just being naive, but this seems like a relatively simple task.
  712. Just keep track of the mouse position (with GetMouse, probably) and post a
  713. mousedown in the title bar (or some other harmless region) of the window
  714. it's over when it moves from one window to another.  That's probably not the
  715. best way to do it.  You could probably also force the window's application to
  716. come to the front without posting a mousedown, especially with system 7.
  717.  
  718. Am I missing something?  I almost felt compelled to write the init when I saw
  719. the original post, but I'm just too busy....
  720.  
  721. Mike.
  722. - -- 
  723. _____________________________________________________________________________
  724. Michael A. Kelly                                         University of Oregon
  725. mkelly@cs.uoregon.edu                             Computer Science Department
  726. _____________________________________________________________________________
  727.  
  728. +++++++++++++++++++++++++++
  729.  
  730. From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  731. Date: 27 Mar 92 17:46:15 GMT
  732. Organization: Integrated Systems Laboratory, ETH, Zurich
  733.  
  734. In article <dave.701660585@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  735. >You might have seen my post in c.m.s.system asking about the availabilty
  736. >of a 'sun-mouse' init - ie an init that makes the window that is under the
  737. >mouse the currently active window.  Well it seems that not only has no-one
  738. >seen one of these babies but quitte a few people want one too.  
  739. >
  740. >So I don't supppose there is a community-minded programmer out there who
  741. >wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  742.  
  743. I thought about doing such a thing. It might be possible to do by patching
  744. FrontWindow to return the window the cursor is in.
  745.  
  746. I see three main problems:
  747.  
  748. 1) Nobody wants it so badly that they want to risk the eternal wrath of the
  749. window manager
  750.  
  751. 2) It's almost impossible to separate usages of FrontWindow where the front
  752. window should be returned and usages where the mouse window should.
  753.  
  754. 3) What about modal dialogs ?
  755.  
  756. Summary: Not for the weak of heart.
  757.  
  758. Matthias
  759.  
  760. - -----
  761. Matthias Neeracher                                   neeri@iis.ethz.ch
  762.  "You must have picked up that copy of Scarlett instead of Inside Mac
  763.   when you tried to find the right call..." -- Keith Rollin
  764.  
  765. +++++++++++++++++++++++++++
  766.  
  767. From: gurhs@uniwa.uwa.oz.au (Rhys Hollow)
  768. Organization: University of Western Australia
  769. Date: Sun, 29 Mar 1992 08:08:43 GMT
  770.  
  771. neeri@iis.ethz.ch (Matthias Ulrich Neeracher) writes:
  772.  
  773. >In article <dave.701660585@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  774. >>You might have seen my post in c.m.s.system asking about the availabilty
  775. >>of a 'sun-mouse' init - ie an init that makes the window that is under the
  776. >>mouse the currently active window.  Well it seems that not only has no-one
  777. >>seen one of these babies but quitte a few people want one too.  
  778. >>
  779. >>So I don't supppose there is a community-minded programmer out there who
  780. >>wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  781.  
  782. >I thought about doing such a thing. It might be possible to do by patching
  783. >FrontWindow to return the window the cursor is in.
  784.  
  785.  
  786. WHY?  Why do such a horrible thing?  Have you thought of the
  787. consequences?  What happens when you want to select a menu?  You move
  788. the mouse to the menu bar and... oops, the mouse moved over a different
  789. window, bringing a different window to the front, even a different
  790. application, thus either changing the menus completely, or losing the
  791. window you wanted to do the menu command on.  I HATE SUN MOUSES!
  792.  
  793. Someone put them on the amiga, thinking it was a great idea.  The Amiga
  794. would have had the same problem as the mac, but it had a separate mouse
  795. button you had to press to bring up the menubar.  So as long as you
  796. pressed the menu button while you were over the appropriate window,
  797. everything was ok, but if you didn't, the same thing happened.  The sun
  798. mouse brought a different window/application to the front, and you had
  799. to start all over again.
  800.  
  801. I think what I'm saying is that while sun mice are allright on suns
  802. because they have pop-up menus, they would be a disaster on a mac.
  803. (At least this is what I assume they have on a sun, I haven't used a
  804. sun, so I'm not entirely sure)
  805.  
  806. Rhys (raving again...)
  807. - --
  808. Rhys Hollow (gurhs@uniwa.uwa.oz.au) "ee'er by gum he's a bad'un!" -DangerMouse.
  809.  
  810. +++++++++++++++++++++++++++
  811.  
  812. From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  813. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  814. Date: Sun, 29 Mar 1992 18:25:50 GMT
  815.  
  816. mkelly@majestix.cs.uoregon.edu (Michael A. Kelly) writes:
  817.  
  818. >In article <D88-JWA.92Mar27193520@byse.nada.kth.se> d88-jwa@byse.nada.kth.se (Jon W{tte) writes:
  819. >>@coombs.anu.edu.au (David G. White) writes:
  820. >>
  821. >>   of a 'sun-mouse' init - ie an init that makes the window that is under the
  822. >>   mouse the currently active window.  Well it seems that not only has no-one
  823. >>
  824. >>You would have to get really, _really_, REALLY down and dirty to pull
  825. >>something like that off. And all for something which I don't even see
  826. >>the value of - I run MWM instead of TWM just because I loke a fixed focus.
  827. >I'm probably just being naive, but this seems like a relatively simple task.
  828. >Just keep track of the mouse position (with GetMouse, probably) and post a
  829. >mousedown in the title bar (or some other harmless region) of the window
  830. >it's over when it moves from one window to another.
  831.  
  832. No, that's not what the original poster wants. You probably never use Unix 
  833. window systems: They distingish between *front* window and *active* window.
  834. So, you'd have to write an INIT that makes an application interpret keystrokes
  835. for the window the mouse points to (which is *not* necessarily the front
  836. window).
  837.  
  838. Matthias
  839.  
  840. - -----
  841. Matthias Neeracher                                      neeri@iis.ethz.ch
  842.   "And that's why I am going to turn this world upside down, and make
  843.    of it a fire so *bright* that someone real will notice"
  844.                                 -- Vernor Vinge, _Tatja Grimm's World_
  845.  
  846. +++++++++++++++++++++++++++
  847.  
  848. From: ari@eclectic.com (Ari Halberstadt)
  849. Date: 30 Mar 92 19:29:01 GMT
  850. Organization: Eclectic Associates, Inc.
  851.  
  852. In article <1992Mar29.080843.14883@uniwa.uwa.oz.au> gurhs@uniwa.uwa.oz.au (Rhys Hollow) writes:
  853. >neeri@iis.ethz.ch (Matthias Ulrich Neeracher) writes:
  854. >>In article <dave.701660585@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  855. >>>an init that makes the window that is under the
  856. >>>mouse the currently active window. 
  857. >>I thought about doing such a thing. It might be possible to do by patching
  858. >>FrontWindow to return the window the cursor is in.
  859. >What happens when you want to select a menu?  You move
  860. >the mouse to the menu bar and... oops, the mouse moved over a different
  861. >window, bringing a different window to the front, even a different
  862. >application, thus either changing the menus completely, or losing the
  863. >window you wanted to do the menu command on.
  864. >...
  865. >I think what I'm saying is that while sun mice are allright on suns
  866. >because they have pop-up menus, they would be a disaster on a mac.
  867. >(At least this is what I assume they have on a sun, I haven't used a
  868. >sun, so I'm not entirely sure)
  869.  
  870. You could make a monster extension which supports popup menus as well. But
  871. with a one buttoned mouse I think the conclusion is correct that it wouldn't
  872. be very user friendly. Even convincing the Window Manager to support
  873. floating windows from within an application requires bypassing much of
  874. the Window Manager, and the default WDEF makes it even harder since it insists
  875. on unhiliting the drag bar when the window isn't front most. Doing this
  876. from a system extension, and being compatible with all apps, sounds rather
  877. difficult.
  878. - -- 
  879. Ari Halberstadt       ari@eclectic.com             #include <std/disclaimer.h>
  880. Ramsgate (n.) All institutional buildings must, by law, contain at least twenty
  881. ramsgates. These are doors that open the opposite way to the one you expect.
  882.     -- D. Adams & J. Lloyd "The Meaning of Liff", p75.
  883.  
  884. +++++++++++++++++++++++++++
  885.  
  886. From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  887. Organization: Integrated Systems Laboratory, ETH, Zurich
  888. Date: Wed, 1 Apr 1992 17:53:44 GMT
  889.  
  890. In article <1992Mar29.080843.14883@uniwa.uwa.oz.au> gurhs@uniwa.uwa.oz.au (Rhys Hollow) writes:
  891. >neeri@iis.ethz.ch (Matthias Ulrich Neeracher) writes:
  892. >
  893. >>In article <dave.701660585@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  894. >>>You might have seen my post in c.m.s.system asking about the availabilty
  895. >>>of a 'sun-mouse' init - ie an init that makes the window that is under the
  896. >>>mouse the currently active window.  Well it seems that not only has no-one
  897. >>>seen one of these babies but quitte a few people want one too.  
  898. >>>
  899. >>>So I don't supppose there is a community-minded programmer out there who
  900. >>>wants to help us out ? ;-} please please please ?  :-) with sugar ? :)
  901. >
  902. >>I thought about doing such a thing. It might be possible to do by patching
  903. >>FrontWindow to return the window the cursor is in.
  904. >
  905. >WHY?  Why do such a horrible thing?  Have you thought of the
  906. >consequences?
  907.  
  908. Yes.
  909.  
  910. >What happens when you want to select a menu?  You move
  911. >the mouse to the menu bar and... oops, the mouse moved over a different
  912. >window, bringing a different window to the front, even a different
  913. >application, thus either changing the menus completely, or losing the
  914. >window you wanted to do the menu command on.
  915.  
  916. No. By moving the mouse, *no window would be brought to the front*. All that
  917. would happen is that FrontWindow would *pretend* a different window was in
  918. front. And it would do this only in response to a keyDown event. I agree that
  919. this is in practice impossible to implement on the *OS* side, but applications
  920. could do this.
  921.  
  922. >I HATE SUN MOUSES!
  923.  
  924. The only application on my Mac that I would want to behave in an Unix way is
  925. MacLayers.
  926.  
  927. >I think what I'm saying is that while sun mice are allright on suns
  928. >because they have pop-up menus, they would be a disaster on a mac.
  929. >(At least this is what I assume they have on a sun, I haven't used a
  930. >sun, so I'm not entirely sure)
  931.  
  932. The normal ones have popup menus. OpenWindows Suns have button stacks, which is
  933. a visually quite unpleasant implementation of popup menus.
  934.  
  935. Matthias
  936.  
  937. - -----
  938. Matthias Neeracher                                      neeri@iis.ethz.ch
  939.   "And that's why I am going to turn this world upside down, and make
  940.    of it a fire so *bright* that someone real will notice"
  941.                                 -- Vernor Vinge, _Tatja Grimm's World_
  942.  
  943. ---------------------------
  944.  
  945. From: thomasl@cat52.cs.wisc.edu (Thomas Lawrence)
  946. Subject: filename from pathnumber
  947. Date: 29 Mar 92 23:03:08 GMT
  948. Organization: University of Wisconsin, Madison -- Computer Sciences Dept.
  949.  
  950. I've checked Inside Macintosh IV and V about this
  951. but I can't find a solution.  I need my program to
  952. open its data fork, even if the user has renamed
  953. the program.  To do this, I figured I could obtain
  954. the (preopened) resource fork path reference
  955. number, recover the file name and directory
  956. number, and FSOpen the data fork.  Unfortunately
  957. I can find no way of recovering the name of a
  958. file from only a path number.  FSGetFInfo requires
  959. a filename and directory number and PBGetFInfo
  960. seems to require the same.
  961.  
  962. +++++++++++++++++++++++++++
  963.  
  964. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  965. Organization: Kalamazoo College
  966. Date: Mon, 30 Mar 1992 05:30:01 GMT
  967.  
  968. thomasl@cat52.cs.wisc.edu (Thomas Lawrence) writes:
  969. >I need my program to
  970. >open its data fork, even if the user has renamed
  971. >the program.  To do this, I figured I could obtain
  972. >the (preopened) resource fork path reference
  973. >number, recover the file name and directory
  974. >number, and FSOpen the data fork.  Unfortunately
  975. >I can find no way of recovering the name of a
  976. >file from only a path number.
  977.  
  978. Immediately after your application launches, you can get its directory
  979. with GetVol (IM4-107).  It returns you a vRefNum that's actually a
  980. directory ID.  It seems like there should be a better way to do this,
  981. but it's worked for me.
  982.  
  983. Your app's name is available from GetAppParms (IM2-58).  Again, do this
  984. before your first event loop so the user doesn't have a chance to move
  985. or rename you.
  986.  
  987. You didn't say if you were planning on modifying the data fork, so I'll
  988. put the standard don't-write-to-your-application spiel in just to be
  989. sure:  what if you're on CD-ROM? what if you're on a server and the user
  990. doesn't have write privs? what if your user does a backup-changed-files
  991. every day and thereby ends up storing 365 copies of your app per year?
  992. - -- 
  993.  Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
  994.  PC Adventure:  "You killed a small height-disadvantaged person.
  995.  The body vanishes in a cloud of greasy black smoke."
  996.  
  997. +++++++++++++++++++++++++++
  998.  
  999. From: glenn@gla-aux.uucp (Glenn Austin)
  1000. Date: Wed, 1 Apr 92 14:36:51 PST
  1001. Organization: The Pit Lane
  1002.  
  1003.  
  1004. In article <1992Mar29.230308.13722@daffy.cs.wisc.edu> (comp.sys.mac.programmer), thomasl@cat52.cs.wisc.edu (Thomas Lawrence) writes:
  1005. > I've checked Inside Macintosh IV and V about this
  1006. > but I can't find a solution.  I need my program to
  1007. > open its data fork, even if the user has renamed
  1008. > the program.  To do this, I figured I could obtain
  1009. > the (preopened) resource fork path reference
  1010. > number, recover the file name and directory
  1011. > number, and FSOpen the data fork.  Unfortunately
  1012. > I can find no way of recovering the name of a
  1013. > file from only a path number.  FSGetFInfo requires
  1014. > a filename and directory number and PBGetFInfo
  1015. > seems to require the same.
  1016.  
  1017. PBGetFCBInfo is the answer.  Not only can you get the filename, but you
  1018. can also get almost all the other particulars about the file...
  1019.  
  1020. ===============================================================================
  1021. | Glenn L. Austin                | "Turn too soon, run out of room.           |
  1022. | Macintosh Wizard and           |    Turn too late, much better fate."       |
  1023. | Auto Racing Driver             |   -- Jim Russell Racing School Instructors |
  1024. | Usenet:  glenn@gla-aux.uucp or glenn%gla-aux.uucp@skinner.cs.uoregon.edu    |
  1025. ===============================================================================
  1026.  
  1027. ---------------------------
  1028.  
  1029. From: swb1_ltd@uhura.cc.rochester.edu (Steve Berkley)
  1030. Subject: Floppy Disk Override Part II
  1031. Organization: University of Rochester - Rochester, New York
  1032. Date: Mon, 30 Mar 92 16:07:33 GMT
  1033.  
  1034. The solution to the floppy problem seemed to be prompting the
  1035. user to insert the disk, and using GetOSEvent, which removes
  1036. the disk insertion event from the queue before the Finder can
  1037. get to it...
  1038.  
  1039. The next problem is this:  I want to read 10 sectors for track
  1040. on a GCD disk, consistently from track to track.  I know there
  1041. must be some way to do this, because there are programs like
  1042. Copy II Mac which do this, etc.  The disks I am making images of
  1043. have 10 sectors per track...right now, the program is basically
  1044. an imaging program for MAC disks, because the .Sony driver is
  1045. thinking I am doing GCR disks (whoops- I mean GCR above).  Is
  1046. there someone out there, from Apple perhaps, who can tell me
  1047. how to do this from Think C 5.0.2??  I know there are is a 
  1048. SonyEqu.a file that could be tampered with in MacApp, but I 
  1049. really don't want to dig around in assembly.  A straightforward
  1050. approach would be very helpful!!
  1051.  
  1052. Thanks in advance-
  1053. Steve Berkley
  1054. swb1_ltd@uhura.cc.rochester.edu
  1055.  
  1056.  
  1057. +++++++++++++++++++++++++++
  1058.  
  1059. From: stevec@Apple.COM (Steve Christensen)
  1060. Date: 1 Apr 92 03:50:52 GMT
  1061. Organization: Apple Computer Inc., Cupertino, CA
  1062.  
  1063. swb1_ltd@uhura.cc.rochester.edu (Steve Berkley) writes:
  1064.  
  1065. >The next problem is this:  I want to read 10 sectors for track
  1066. >on a GCR disk, consistently from track to track...
  1067. >Is there someone out there, from Apple perhaps, who can tell me
  1068. >how to do this from Think C 5.0.2??  I know there are is a 
  1069. >SonyEqu.a file that could be tampered with in MacApp, but I 
  1070. >really don't want to dig around in assembly.  A straightforward
  1071. >approach would be very helpful!!
  1072.  
  1073. This is not a great idea because you have to talk directly to the
  1074. Mac's hardware to make it work.  Since the low-level floppy disk
  1075. software implementations vary depending on the kind of Mac you're
  1076. using, you need to know all the details for the kind(s) of Mac
  1077. you intend to support.  In any case, tweaking the .Sony driver's
  1078. variables won't get you too far, since it's designed to deal with
  1079. only a few specific disk formats (400K GCR, 800K GCR, 720K MFM,
  1080. and 1.44M MFM).
  1081.  
  1082. That said, are you sure the disks you want to read/write are indeed
  1083. encoded in GCR?  The Mac gets from 8-12 sectors per track because
  1084. that's what fits on each track.  You could get more sectors if the
  1085. sector format was different (smaller).  It sounds more like the
  1086. disk is recorded in MFM since those disks tend to have a fixed
  1087. number of sectors per track...
  1088.  
  1089. steve
  1090. - -- 
  1091. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1092.   Steve Christensen            Never hit a man with glasses.
  1093.   stevec@apple.com            Hit him with a baseball bat.
  1094.  
  1095. ---------------------------
  1096.  
  1097. End of C.S.M.P. Digest
  1098. **********************
  1099.